package com.businessportal.web.dataaccess.dao;

import java.util.List;

/**
 * Created by Vadim on 6/27/14.
 */
public interface IAbstractDao<Id, Entity> {
    Entity getById(Id id);

    List<Entity> getAll();

    void save(Entity entity);

    void update(Entity entity);

    void delete(Entity entity);

    void deleteById(Id id);
}
